package com.pzb.market.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pzb.market.mapper.MkPanicbuyingMapper;
import com.pzb.market.domain.MkPanicbuying;
import com.pzb.market.service.IMkPanicbuyingService;

/**
 * 限时抢购Service业务层处理
 * 
 * @author Mr_Wu
 * @date 2021-12-22
 */
@Service
public class MkPanicbuyingServiceImpl implements IMkPanicbuyingService 
{
    @Autowired
    private MkPanicbuyingMapper mkPanicbuyingMapper;

    /**
     * 查询限时抢购
     * 
     * @param id 限时抢购主键
     * @return 限时抢购
     */
    @Override
    public MkPanicbuying selectMkPanicbuyingById(Long id)
    {
        return mkPanicbuyingMapper.selectMkPanicbuyingById(id);
    }

    /**
     * 查询限时抢购列表
     * 
     * @param mkPanicbuying 限时抢购
     * @return 限时抢购
     */
    @Override
    public List<MkPanicbuying> selectMkPanicbuyingList(MkPanicbuying mkPanicbuying)
    {
        return mkPanicbuyingMapper.selectMkPanicbuyingList(mkPanicbuying);
    }

    /**
     * 新增限时抢购
     * 
     * @param mkPanicbuying 限时抢购
     * @return 结果
     */
    @Override
    public int insertMkPanicbuying(MkPanicbuying mkPanicbuying)
    {
        return mkPanicbuyingMapper.insertMkPanicbuying(mkPanicbuying);
    }

    /**
     * 修改限时抢购
     * 
     * @param mkPanicbuying 限时抢购
     * @return 结果
     */
    @Override
    public int updateMkPanicbuying(MkPanicbuying mkPanicbuying)
    {
        return mkPanicbuyingMapper.updateMkPanicbuying(mkPanicbuying);
    }

    /**
     * 批量删除限时抢购
     * 
     * @param ids 需要删除的限时抢购主键
     * @return 结果
     */
    @Override
    public int deleteMkPanicbuyingByIds(Long[] ids)
    {
        return mkPanicbuyingMapper.deleteMkPanicbuyingByIds(ids);
    }

    /**
     * 删除限时抢购信息
     * 
     * @param id 限时抢购主键
     * @return 结果
     */
    @Override
    public int deleteMkPanicbuyingById(Long id)
    {
        return mkPanicbuyingMapper.deleteMkPanicbuyingById(id);
    }
}
